Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Use a theme

in a theme you can specify specific stylesheets for specific configurations / browsers etc.

assuming you have a them like this one:

<theme>
<!-- Global resources used by this theme -->
<resource>
<content-type>text/css</content-type>
<href>yourStandard.css</href>
</resource>

<resource>
<content-type>application/x-javascript</content-type>
<href>yourStandardJSLib.js</href>
</resource>


<!-- conditionally load css files based on browser type -->

<resource rendered="#{javascript:context.getUserAgent().isIE()}">
<content-type>text/css</content-type>
<href>msie.css</href>
</resource>

<resource rendered="#{javascript:context.getUserAgent().isFirefox()}"
<content-type>text/css</content-type>
<href>firefox.css</href>
</resource>

<!-- Property values -->
<control>
....
</control>

</theme>

as you can see you can pass some javascript code to the "rendered" attribute of your theme's resource tags. In your case you want to know which browser is being used, so you'll query properties of the XSPUserAgent object. See the object's reference to learn about the available parameters.

If the js code returns TRUE the additional resource is loaded, otherwise it's not. And this not only works for .css files but also for additional js libs!

Hope this helps you solving your task.

Good luck!


Feedback response number LMUR7SEGUP created by ~Justin Zekamanlen on 05/26/2009

XPages, CSS and Profile Application... (~Martha Umtumis... 22.May.09)
. . Use a theme (~Tanita Zekhipi... 26.May.09)
. . . . Thanks! (~Martha Umtumis... 26.May.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS